const http = require('http');
const url = require('url');


var serverApp = http.createServer((request, response) => {


  let strUrl = request.url;
  let query = url.parse(strUrl, true).query;
  console.log(query.name, query.age)
  response.write('ok:' + query.name);
  response.end();



})


serverApp.listen(3000, (err) => {
  if (!err) {
    console.log('localhost 3000 start...')
  }
})